import axios from './axios_c.js';
import qs from 'qs'
/**
 *  @name Login 
 *  @description 登录接口
 */
export const Login = (params) => {
        return axios.post('/no/login', params).then(response => response.data).catch(error => error)
    }
    /**
     *  @name selectOrderList 
     *  @selectOrderList 订单列表
     */
export const selectOrderList = (params) => {
        return axios.post('/verify/order/selectOrderList', params).then(response => response.data).catch(error => error)
    }
    /**
     *  @name selectMname 
     *  @selectMname 获取服务商名字
     */
export const selectMname = (params) => {
        return axios.post('/verify/order/selectMname', params).then(response => response.data).catch(error => error)
    }
    /**
     *  @name selectTopUpList 
     *  @selectTopUpList 充值记录
     */
export const selectTopUpList = (params) => {
        return axios.post('/verify/order/selectTopUpList', params).then(response => response.data).catch(error => error)
    }
    /**
     *  @name selectMchBalanceRecord 
     *  @selectMchBalanceRecord 商户交易明细
     */
export const selectMchBalanceRecord = (params) => {
        return axios.post('/verify/order/selectMchBalanceRecord', params).then(response => response.data).catch(error => error)
    }
    /**
     *  @name rechargeStatistics 
     *  @rechargeStatistics 充值统计
     */
export const rechargeStatistics = (params) => {
        return axios.post('/verify/order/rechargeStatistics', params).then(response => response.data).catch(error => error)
    }
    /**
     *  @name consumptionStatistics 
     *  @consumptionStatistics 消费统计
     */
export const consumptionStatistics = (params) => {
        return axios.post('/verify/order/consumptionStatistics', params).then(response => response.data).catch(error => error)
    }
    /**
     *  @name selectMchList 
     *  @selectMchList 商户列表
     */
export const selectMchList = (params) => {
    return axios.post('/verify/user/selectMchList', params).then(response => response.data).catch(error => error)
}

/**
 *  @name updateMchInfo 
 *  @updateMchInfo 修改商户
 */
export const updateMchInfo = (params) => {
    return axios.post('/verify/user/updateMchInfo', params).then(response => response.data).catch(error => error)
}


/**
 *  @name addMch 
 *  @addMch 添加商户
 */
export const addMch = (params) => {
    return axios.post('/verify/user/addMch', params).then(response => response.data).catch(error => error)
}

/**
 *  @name selectSettleList 
 *  @addMch 查看结算单列表
 */
export const selectSettleList = (params) => {
    return axios.post('/verify/settle/selectSettleList', params).then(response => response.data).catch(error => error)
}

/**
 *  @name selectSettleDet 
 *  @addMch 查看结算单明细
 */
export const selectSettleDet = (params) => {
    return axios.post('/verify/settle/selectSettleDet', params).then(response => response.data).catch(error => error)
}

/**
 *  @name settlePreview 
 *  @addMch 结算单预览
 */
export const settlePreview = (params) => {
    return axios.post('/verify/settle/settlePreview', params).then(response => response.data).catch(error => error)
}

/**
 *  @name addSettle 
 *  @addMch 结算单生成
 */
export const addSettle = (params) => {
    return axios.post('/verify/settle/addSettle', params).then(response => response.data).catch(error => error)
}

/**
 *  @name selectUserInfoList 
 *  @addMch 用户列表
 */
export const selectUserInfoList = (params) => {
    return axios.post('/verify/user/selectUserInfoList', params).then(response => response.data).catch(error => error)
}

/**
 *  @name addOrderByAdmin 
 *  @addMch 管理员给用户充值
 */
export const addOrderByAdmin = (params) => {
    return axios.post('/verify/user/addOrderByAdmin', params).then(response => response.data).catch(error => error)
}

/**
 *  @name addFile 
 *  @addMch 文件上传
 */
export const addFile = '/no/addFile';

/**
 *  @name findExcel 
 *  @addMch 下载充值模板
 */
export const findExcel = '/no/findExcel';
/**
 *  @name batchTopUp 
 *  @addMch 管理员批量充值
 */
export const batchTopUp = (params) => {
    return axios.post('/verify/user/batchTopUp', params).then(response => response.data).catch(error => error)
}

/**
 *  @name settleExport 
 *  @addMch 结算详情导出
 */
export const settleExport = (params) => {
    return axios.post('/verify/settle/settleExport', params).then(response => response.data).catch(error => error);
}

/**
 *  @name selectSettleDetList 
 *  @addMch 结算详情列表
 */
export const selectSettleDetList = (params) => {
    return axios.post('/verify/settle/selectSettleDetList', params).then(response => response.data).catch(error => error);
}

/**
 *  @name selectStaffList 
 *  @addMch 员工列表
 */
export const selectStaffList = (params) => {
    return axios.post('/verify/user/selectStaffList', params).then(response => response.data).catch(error => error);
}

/**
 *  @name selectStaffLogList 
 *  @addMch 日志列表
 */
export const selectStaffLogList = (params) => {
    return axios.post('/verify/fuction/selectStaffLogList', params).then(response => response.data).catch(error => error);
}